<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2022/5/9
  Time: 20:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
    文件上传满足的三个条件：
        1.标签只能是file
        2.请求方式只能用：post
        3.表单的编码格式只能用：multipart/form-data
--%>
  <form action="${pageContext.request.contextPath}/workbench/fileUpload" method="post" enctype="multipart/form-data">
    <input type="file" name="myFile">
    <input type="text" name="username">
    <input type="submit" value="提交">
  </form>
</body>
</html>
